-
Notifications
You must be signed in to change notification settings - Fork 255
Refactor unit-test data structure: improve flexibility and remove abandoned data #1498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor unit-test data structure: improve flexibility and remove abandoned data #1498
Conversation
c68c515 to
db9f90e
Compare
|
Looks promising |
82e3aaf to
0a59eda
Compare
Helper to load test data for unit tests. This function supports loading data files relative to the test file. It works even if the test file is in a subfolder, allowing your test data to be organized in corresponding subfolders alongside the tests.
0a59eda to
a87c45b
Compare
|
Differences between virtual-env paths and normal paths caused a few problems, but now |
|
OK so to close the loop on this, there was a pytest fixture in |
|
That’s almost certainly correct. The It looks like Should I make the commit message more specific? Happy to take suggestions. |
|
No your commit messages were fine, I was just not sure why they had been unused so decided to do some history research to understand more, and figured I'd share the results |
Related Issue
None
New Behavior
Not changed
...
Contrast to Current Behavior
The same
...
Discussion: Benefits and Drawbacks
This update improves how unit-test data is organized.
The structure is now more flexible, and abandoned data has been removed.
These adjustments lay the groundwork for a future change where the single large
test_netbox_moduletest file will be split into multiple, logically grouped files.That restructuring is not part of this PR, but this prepares for it.
...
Changes to the Documentation
None
...
Proposed Release Note Entry
...
Double Check
develbranch.